// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using NSQL.Statements;


namespace NSQL.Extensions
{
    public static class DataSetStatementExtensions
    {
        public static UnionStatement Union(this IDataTableStatement statement, IDataTableStatement unionStatement,
            UnionType unionType = UnionType.Distinct)
        {
            return Prelude.Union(statement, unionStatement, unionType);
        }

        public static UnionStatement UnionAll(this IDataTableStatement statement, IDataTableStatement unionStatement)
        {
            return Prelude.Union(statement, unionStatement, UnionType.All);
        }

        public static IntersectionStatement Intersect(this IDataTableStatement statement,
            IDataTableStatement otherStatement)
        {
            return Prelude.Intersect(statement, otherStatement);
        }

        public static MinusStatement Minus(this IDataTableStatement statement, IDataTableStatement otherStatement)
        {
            return Prelude.Minus(statement, otherStatement);
        }
    }
}